package com.bjpowernode.mappers;

import com.bjpowernode.annotations.DataScope;
import com.bjpowernode.entities.TCustomer;
import com.bjpowernode.querys.BaseQuery;

import java.util.List;

public interface TCustomerMapper {
    TCustomer selectById(Integer id);

    @DataScope(tableAlias = "tc", columnName = "owner_id")
    List<TCustomer> selectByPage(BaseQuery baseQuery, List<String> idList);

    Integer selectTotalCustomerCount();

    int insert(TCustomer record);

    int insertSelective(TCustomer record);

    int updateById(TCustomer record);

    int updateByIdSelective(TCustomer record);

    int deleteById(Integer id);
}